
public class PrimaryUser extends Agent {

	public PrimaryUser(String aName, Environment anEnvironment, Role aRole,
			Spectrum aSpectrum, int aTransmissionPower) {
		super(aName, anEnvironment, aRole);
		occupySpectrum(aSpectrum);
		adjustPower(aTransmissionPower);
	}

	@Override
	public void occupySpectrum(Spectrum aSpectrum) {
		super.occupySpectrum(aSpectrum);
		currentState.occupiedSpectrum.containsPrimaryUser = true;
	}
	
	@Override
	public void vacateSpectrum() {
		super.vacateSpectrum();
		currentState.occupiedSpectrum.containsPrimaryUser = false;
	}
	
	public void transmit() {
		
	}
	
	public void iterate() {
		transmit();
	}
	
}
